import { axios } from '@/utils/request'

/**
 * 查询聊天记录表
 *
 * @author 郑雄伟
 * @date 2024-01-19 15:31:54
 */
export function getByOwnTxCodePage (parameter) {
  return axios({
    url: '/appChatHistory/getByOwnTxCodePage',
    method: 'get',
    params: parameter
  })
}

/**
 * 查询聊天记录表
 *
 * @author 郑雄伟
 * @date 2024-01-19 15:31:54
 */
export function getChatInfoList (parameter) {
  return axios({
    url: '/appChatHistory/getChatInfoList',
    method: 'get',
    params: parameter
  })
}

/**
 * 查询聊天记录表
 *
 * @author 郑雄伟
 * @date 2024-01-19 15:31:54
 */
export function appChatHistoryPage (parameter) {
  return axios({
    url: '/appChatHistory/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 聊天记录表列表
 *
 * @author 郑雄伟
 * @date 2024-01-19 15:31:54
 */
export function appChatHistoryList (parameter) {
  return axios({
    url: '/appChatHistory/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加聊天记录表
 *
 * @author 郑雄伟
 * @date 2024-01-19 15:31:54
 */
export function appChatHistoryAdd (parameter) {
  return axios({
    url: '/appChatHistory/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑聊天记录表
 *
 * @author 郑雄伟
 * @date 2024-01-19 15:31:54
 */
export function appChatHistoryEdit (parameter) {
  return axios({
    url: '/appChatHistory/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除聊天记录表
 *
 * @author 郑雄伟
 * @date 2024-01-19 15:31:54
 */
export function appChatHistoryDelete (parameter) {
  return axios({
    url: '/appChatHistory/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出聊天记录表
 *
 * @author 郑雄伟
 * @date 2024-01-19 15:31:54
 */
export function appChatHistoryExport (parameter) {
  return axios({
    url: '/appChatHistory/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
